package com.mzj.saas.mservice.propertybill.repository;

import com.mzj.saas.mservice.propertybill.entity.EstateViolateBill;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface EstateViolateBillRepository extends PagingAndSortingRepository<EstateViolateBill, Long>, JpaSpecificationExecutor<EstateViolateBill>, JpaRepository<EstateViolateBill, Long> {
        List<EstateViolateBill> findByRuleId(String ruleId);
        List<EstateViolateBill> findByBillId(Long billId);

        List<EstateViolateBill> findByBillIdIn(List<Long> billIds);

        List<EstateViolateBill> findByIdIn(List<Long> ids);
        List<EstateViolateBill> findByHouseId(String houseId);
        List<EstateViolateBill> findByHouseIdAndLeaseStatus(String houseId,Integer leaseStatus);
}
